package cn.zcq100.xmlParse;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.*;

import sun.misc.Regexp;

public class GetHttp {
	public static void main(String[] args) {
		String str=null;
		try {
			URL url = new URL("http://www.baidu.com");
			BufferedReader bf=new BufferedReader(new InputStreamReader(url.openStream()));
			while((str=bf.readLine())!=null){
				System.out.println(str);
			}
			bf.close();
		}catch (Exception e) {
			// TODO: handle exception
		}
		
	}
}
